<?php if($PERMISSION[CAN_SEARCH]):?>
	<form action="<?=$URL."/$page/search"?>" method="post">
		<table>
			<tr>
				<td>
				<?php forEach($searchCriteria[DATA] as $field){ ?>
				    <?php //if dropdown, textbox, startDate, exact date?>
					<b> <?=$field[LABEL]?> : </b> 
				      <?php 
					  $_type = $field[TYPE];
				      $_label = $field[LABEL];
				      $_field = $field[FIELDS];
				      $_value = set_value($field[FIELDS]); // (isset($record[$fields[FIELDS][$x][FIELDS]] ) ? $record[$fields[FIELDS][$x][FIELDS]] : "" );
				      include TAGS."textbox.php";
					  ?>	
				<?php }?>
				</td>
				<td>
				<input type="submit" value="Go" name="submit">
				</td>
		    </tr>
		</table>
	</form>
<?php endif;?>